Skip to content

ci: add GitHub Actions workflows - #1

Closed
brauner wants to merge 3 commits into
mainfrom
ci
Closed

brauner wants to merge 3 commits into
mainfrom
ci

Conversation

@brauner

@brauner brauner commented Nov 11, 2026

Copy link
Copy Markdown
Member

This adds CI for ufat. It runs for every pull request, every push to
main and once a week:

  • the build and the tests with rustc 1.85 and with the current stable
    rustc, on x86_64 and aarch64, with --werror. The jobs also check the
    case folding table with rustc 1.85 and that the installed binary is a
    static-pie.
  • rustfmt and clippy
  • the exhaustive sweeps
  • the fuzzing campaign. The weekly run does 5000 iterations instead of
    200.
  • the coverage report, which goes into the job summary
  • a compile-only run of every Kani proof, the slow ones and the one of
    the directory index included. Actually running the proofs needs far
    more time and memory than a GitHub runner has.

Everything runs on Ubuntu 26.04. 24.04 is too old: its meson is 1.3 and
its varlinkctl doesn't know --push-fd yet. The tests skip what they
can't find. So the build jobs first check that mkfs.fat, fsck.fat,
mtools and varlinkctl are there. Otherwise a missing package would make
the reference tests skip without anyone noticing.

Two small commits come first. clippy flags a pointless cast in the
exhaustive tests. And without a Cargo.toml clippy doesn't know our
minimum rustc version and suggests is_multiple_of() which only became
stable in rustc 1.87. So clippy.toml now sets msrv = "1.85".

The one job I couldn't try locally is the Kani one. The flags
verify/run.sh passes may need adjusting for Kani 0.68.

threads() already returns a u64 and clippy complains about the cast.
No functional changes.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
meson provides a clippy target out of the box. Without a Cargo.toml
clippy has no idea that ufat has to build with rustc 1.85 though, so it
suggests is_multiple_of() which only became stable in rustc 1.87. Tell
it about the minimum version in clippy.toml.

clippy looks for clippy.toml in the directory it runs in and in the
ones above it. The clippy target runs it in the build directory, so it
only finds the file when the build directory is below the source
directory. Document that and CLIPPY_CONF_DIR in HACKING.md.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Build and test ufat for every pull request, every push to main and once
a week:

- build with rustc 1.85 and the current stable rustc on x86_64 and
  aarch64 with --werror, run the tests and check that the installed
  binary is a static-pie
- check the case folding table with rustc 1.85
- run rustfmt and clippy
- run the exhaustive sweeps
- run the fuzzing campaign, with 5000 iterations in the weekly run
- generate the coverage report and put it into the job summary
- build every Kani proof with --only-codegen

Everything runs on Ubuntu 26.04 whose meson is new enough and whose
varlinkctl knows --push-fd. The tests skip what they can't find. So the
build jobs first check that mkfs.fat, fsck.fat, mtools and varlinkctl
are there. Otherwise a missing package would make the reference tests
skip without anyone noticing.

Running the Kani proofs takes far more time and memory than a GitHub
runner has. So CI only makes sure that they still build and the real
runs stay where they are.

The actions are pinned to the same commits systemd uses and dependabot
bumps them once a month.

Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
@brauner

brauner commented Nov 11, 2026

Copy link
Copy Markdown
Member Author

Superseded by #2.

@brauner brauner closed this Nov 11, 2026
@brauner
brauner deleted the ci branch November 12, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant